const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
  outputDir: 'dist',
  indexPath: 'index.html',
  lintOnSave: false,
  transpileDependencies: true,
  devServer: {
    client: {
      overlay: false
    },
    proxy: {
      '/prod-api': {
        target: "http://121.61.252.109:8005",
        changeOrigin: true,
        secure: true,          // 设置支持https协议的代理
        pathRewrite: {
          '^/prod-api': 'http://121.61.252.109:8005'
        },
        compress: false, // 关闭压缩
      },
    },
    compress: false, // 关闭压缩
  },
  runtimeCompiler: true,
})

